export const severityColumn = [
	{
		label: "规程编号",
		prop: "gcbh",
		align: "center",
		rules: [{
			required: true,
			message: "请输入规程编号",
			trigger: "blur"
		}]
	},
	{
		label: "规程名称",
		prop: "gcmc",
		align: "center",
		search: true,
		rules: [{
			required: true,
			message: "请输入规程名称",
			trigger: "blur"
		}]
	},
	{
		label: "版本号",
		prop: "bbh",
		align: "center",
		width: 60
	},
	{
		label: "发布日期",
		prop: "fbrq",
		align: "center",
		type: "date",
		format: "yyyy-MM-dd",
		valueFormat: "yyyy-MM-dd",
		width: 90
	},
	{
		label: "规程正文",
		prop: "gczw",
		hide: true,
		type: "textarea",
		span: 24,
		maxlength: 150
	},
	{
		label: "附件",
		prop: "fj",
		align: "center",
		width: 100,
		span: 24,
		slot: true,
		formslot: true
	},
	{
		label: "编辑部门",
		prop: "bjbmName",
		align: "center",
		display: false
	},
	{
		label: "编辑部门",
		prop: "bjbm",
		hide: true,
		type: "tree",
		multiple: true,
		dicData: [],
		props: {
			label: "title"
		},
		checkStrictly: true
	},
	{
		label: "适用部门",
		prop: "sybm",
		hide: true,
		type: "tree",
		multiple: true,
		dicData: [],
		props: {
			label: "title"
		},
		checkStrictly: true
	},
	{
		label: "是否现行",
		prop: "sfxx",
		hide: true,
		type: "select",
		dicData: [{
			label: "是",
			value: 1
		}, {
			label: "否",
			value: 0
		}],
	},
	{
		label: "启用日期",
		prop: "qyrq",
		hide: true,
		type: "date",
		format: "yyyy-MM-dd",
		valueFormat: "yyyy-MM-dd"
	},
	{
		label: "审核人",
		prop: "shren",
		hide: true,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择审核人",
			trigger: "change"
		}]
	},
	{
		label: "批准人",
		prop: "spren",
		hide: true,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择批准人",
			trigger: "change"
		}]
	},
	{
		label: "评审人",
		prop: "psren",
		hide: true,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择评审人",
			trigger: "change"
		}]
	},
	{
		label: "状态",
		display: false,
		prop: "status",
		align: "center",
		width: 100,
		slot: true
	},
	{
		label: "审批",
		display: false,
		prop: "approve",
		align: "center",
		width: 100,
		slot: true
	},
	{
		label: "评审",
		display: false,
		prop: "review",
		align: "center",
		width: 100,
		slot: true
	},
	{
		label: "修订",
		display: false,
		prop: "revise",
		align: "center",
		width: 180,
		slot: true
	}
]

export const reviseRecordColumn = [
	{
		label: "规程编号",
		prop: "gcbh",
		align: "center"
	},
	{
		label: "规程名称",
		prop: "gcmc",
		align: "center"
	},
	{
		label: "版本号",
		prop: "bbh",
		align: "center"
	},
	{
		label: "发布日期",
		prop: "fbrq",
		align: "center"
	},
	{
		label: "修订日期",
		prop: "xdrq",
		align: "center"
	}
]

export const reviseColumn = [
	{
		label: "规程编号",
		prop: "gcbh",
		disabled: true,
		rules: [{
			required: true,
			message: "请输入规程编号",
			trigger: "blur"
		}]
	},
	{
		label: "规程名称",
		prop: "gcmc",
		disabled: true,
		rules: [{
			required: true,
			message: "请输入规程名称",
			trigger: "blur"
		}]
	},
	{
		label: "版本号",
		prop: "bbh",
		disabled: true
	},
	{
		label: "发布日期",
		prop: "fbrq",
		disabled: true,
		type: "date",
		format: "yyyy-MM-dd",
		valueFormat: "yyyy-MM-dd"
	},
	{
		label: "规程正文",
		prop: "gczw",
		disabled: true,
		type: "textarea",
		span: 24,
		maxlength: 150
	},
	{
		label: "附件",
		prop: "fj",
		disabled: true,
		span: 24,
		formslot: true
	},
	{
		label: "编辑部门",
		prop: "bjbm",
		disabled: true,
		type: "tree",
		multiple: true,
		dicData: [],
		props: {
			label: "title"
		},
		checkStrictly: true
	},
	{
		label: "适用部门",
		prop: "sybm",
		disabled: true,
		type: "tree",
		multiple: true,
		dicData: [],
		props: {
			label: "title"
		},
		checkStrictly: true
	},
	{
		label: "是否现行",
		prop: "sfxx",
		disabled: true,
		type: "select",
		dicData: [{
			label: "是",
			value: 1
		}, {
			label: "否",
			value: 0
		}],
	},
	{
		label: "启用日期",
		prop: "qyrq",
		disabled: true,
		type: "date",
		format: "yyyy-MM-dd",
		valueFormat: "yyyy-MM-dd"
	},
	{
		label: "审核人",
		prop: "shren",
		disabled: true,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择审核人",
			trigger: "change"
		}]
	},
	{
		label: "批准人",
		prop: "spren",
		disabled: true,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择批准人",
			trigger: "change"
		}]
	},
	{
		label: "评审人",
		prop: "psren",
		disabled: true,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择评审人",
			trigger: "change"
		}]
	},
	{
		label: "部门审核",
		prop: "deptExamine",
		disabled: true,
		type: "radio",
		display: false,
		dicData: [{
			label: "同意",
			value: 1
		}, {
			label: "不同意",
			value: 2
		}],
		rules: [{
			required: true,
			message: "请选择部门审核意见",
			trigger: "change"
		}]
	},
	{
		label: "领导批准",
		prop: "leaderApprove",
		disabled: true,
		type: "radio",
		display: false,
		dicData: [{
			label: "同意",
			value: 1
		}, {
			label: "不同意",
			value: 2
		}],
		rules: [{
			required: true,
			message: "请选择领导批准意见",
			trigger: "change"
		}]
	}
]

export const exportColumn = [
	{
		label: "模板上传",
		prop: "excelFile",
		type: "upload",
		drag: true,
		loadText: "模板上传中，请稍等",
		showFileList: false,
		span: 24,
		propsHttp: {
			fileName: 'multipartFile',
			res: 'data'
		},
		tip: "请上传 .xls,.xlsx 标准格式文件",
		action: "/api/securitySystemManagement/optprocedures/import"
	},
	{
		label: "模板下载",
		prop: "excelTemplate",
		formslot: true,
		span: 24
	}
]